import styled from "styled-components";

export const SearchWrapper = styled.div`
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    .headerImg {
        width: 100%;
        position: absolute;
        left: 0;
        height: 300px;
        z-index:-1;
    }
    .title{
        text-align: center;
        font-size: 37px;
        color: #fff;
        margin-top: 80px;
        font-weight: bold;
        z-index: 2;
    }
`
export const SearchBox = styled.div`
    top: 300px;
    width: 100%;
    position: absolute;
    background-color: #eee;
    overflow: hidden;
    margin-bottom: 10px;
    height: 60px;
    padding: 10px 0;
    z-index: -1;
    .searchName {
        font-size: 30px;
        position: absolute;
        left: 20%;
        padding: 10px 18px;
        margin-right: 20px;
    }
    .highLevelSearch {
        font-size:25px;
        position: absolute;
        left: 70%;
        margin-left: 20px;
        margin-top: 10px;
        .iconfont {
            margin-left: 3px;
        }
        cursor: pointer;
    }
    z-index:10
`
export const BaseInput = styled.input.attrs({placeholder: '请输入关键字'})`
    left: 30%;
    position: absolute;
    box-sizing: border-box;
    margin: 5px 20px;
    padding: 5px 18px;
    height: 50px;
    width: 400px;
    line-height: 42px;
    color: #616161;
    background-color: #fff;
    border-radius: 5px;
    font-size: 20px;
    z-index: 2;
    &::placeholder{
       color: #616161;
    }
`
export const SearchButton = styled.div`
    position: absolute;
    left: 55%;
    cursor: pointer;
    padding: 0 18px;
    height: 50px;
    width: 200px;
    text-align: center;
    line-height: 42px;
    background-color: #2993f0;
    color: #fff;
    font-size:30px;
    border-radius: 5px;
`
export const FilterBox = styled.div`
    position: absolute;
    top: 380px;
    left: 20%;
    padding: 0 18px;
    border-bottom: 1px solid #ccc;
    z-index: 2
`

export const FilterItem = styled.div`
    cursor: pointer;
    display: block;
    height: 32px;
    width: 100px;
    float:left;
    padding-top: 10px;
    margin-bottom: 5px;
    margin-right: 20px;
    text-align: center;
    font-size: 18px;
    &.notChoose{
        color: #888c94;
    }
    &.choose {
        background: #2993f0;
        color: #fff ;
    }
`
export const SearchBody = styled.div`
    position: absolute;
    top: 600px;
    left: 20%;
    width: 600px;
`
export const SearchContentWrapper = styled.div`
    width: 600px;
    padding: 10px auto;
    margin-bottom: 20px;
    height: 100px;
    border-bottom: 1px solid #ccc;
    p{
        margin-left: 20px;
        font-size: 20px;
        font-weight: bold;
        color: #0077F9;
        overflow: hidden;  /*溢出隐藏*/
        text-overflow: ellipsis; //省略
        white-space: nowrap;  /*强制不换行*/
    }
    .content{
        display: -webkit-box;/** 对象作为伸缩盒子模型显示 **/
        word-break: break-all;
        margin-left: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;/** 设置或检索伸缩盒对象的子元素的排列方式 **/
        -webkit-line-clamp: 3;/** 显示的行数 **/
    }
    .date{
        float: right;
        color: #BCBEC2;
    }
`
export const PageDivideWrapper = styled.div`
    position: absolute;
    top: 1200px;
    display: flex;
    width:100%;
    left: -10%;
    height: 50px;
    justify-content:space-around;
    align-items: flex-start;
    .page{
        list-style: none;
        padding:0;
        margin: 0;
        li {
            float: left;
            width: 50px;
            padding:0px 5px;
            height: 30px;
            text-align: center;
            border: 1px solid #e6e6e6;
            text-align: 30px;
            color: #333;
            cursor: pointer;

        &:first-of-type,&:last-of-type{
            width:auto;
            padding:0px 5px;
        }
        &:first-of-type{
            margin-right:10px;
        }
        &:last-of-type{
            margin-left:10px;
        }
        &::selection {
            background-color: transparent;
        }
         }
        .active{
            color:#fff !important;
            background: #54b0bd;
            border-color:#54b0bd !important;
         }
         .nomore{
             color:#b5b5b5 !important;
             cursor: not-allowed;
         }
         .ellipsis{
            border:none !important;
            margin:0 10px;
            cursor: default !important;
         }
    }
`
export const KgWrapper = styled.div`
  left: 70%;
  width: 380px;
  top: 600px;
  position: absolute;
  border: 3px dotted #73AD21;
  .title{
    color: blue;
    margin: 10px auto;
  }
  .question{
    margin: 10px auto;
    color: red;
    font-size: 20px;
    line-height: 2
  }
  .answer{
    margin: 10px auto;
    font-size: 30px;
    line-height: 2
  }
`
